import request from '@/utils/request'

export default {
    addVideoInfo(video) {
        return request({
            url: `/eduservice/video/addVideo`,
            method: 'post',
            data: video
        })
    },
    deleteVideo(videoId){
        return request({
            url: `/eduservice/video/` + videoId,
            method: 'delete'
        })
    },
    updateVideoInfo(video){
        return request({
            url: `/eduservice/video/updateVideo`,
            method: 'post',
            data: video
        })
    },
    getVideo(videoId) {
        return request({
            url: `/eduservice/video/getVideoInfo/` + videoId,
            method: 'get'
        })
    },
    deleteAliVideo(videoId) {
        return request({
            url: `/eduvod/video/removeVideo/` + videoId,
            method: 'delete'
        })
    },
}
